<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>{$pageTitle}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Pragma" content="no-Сache" />
		<meta http-equiv="Expires" content="-1" />
		{* Подключаем библиотеки *} 
        <script type="text/javascript" language="JavaScript" src="./lib/jquery/jquery-1.3.2.js"></script>
        <script type="text/javascript" language="JavaScript" src="./lib/jquery/jquery.simplemodal-1.3.js"></script>
        <script type="text/javascript" language="JavaScript" src="./lib/jquery/jquery-ui-1.7.2.custom.min.js"></script>
		<script type="text/javascript" language="JavaScript" src="./lib/jquery/jquery.contextmenu.js"></script>
		{* Подключаем javascript *}
		<script type="text/javascript" language="JavaScript" src="./js/phonebook.js"></script>        
        <script type="text/javascript" language="JavaScript" src="./js/auth.js"></script>
		{if $menu eq 'ext_menu.tpl'}
		<script type="text/javascript" language="JavaScript" src="./js/statForm.js"></script>
        {/if}
		<script type="text/javascript" language="JavaScript" src="./js/index.js"></script>
        <script type="text/javascript" language="JavaScript" src="./js/printPhonebook.js"></script>
        {* Подключаем таблицы стилей *}
		<link type="text/css" rel="stylesheet" href="./css/main.css" />
		<link type="text/css" rel="stylesheet" href="./css/menu.css" />        
        <link type="text/css" rel="stylesheet" href="./css/auth.css" />
		<link type="text/css" rel="stylesheet" href="./css/phonebook.css" />
        <link type="text/css" rel="stylesheet" href="./css/jquery-ui-1.7.2.custom.css" />
		<link type="text/css" rel="stylesheet" href="./css/jquery.contextmenu.css" />				
    </head>
    <body>
        {include file=$menu}
        <div id="phonebookDiv"></div>        
        {include file=$form}
        {if $canAddUser eq true }
            {include file="acceptDelete.tpl"}
            {include file="addUserForm.tpl"}
            <div id="addUserDiv">
                <div id="addUserDivDiv">
                    <a id="addUser" class="add" href="#">Добавить пользователя</a>
                </div>
            </div>
        {/if}
        {if $menu eq 'ext_menu.tpl'}
            {include file="statForm.tpl"}
        {/if}
        {if $canEditUsers}
            {include file="editrows.tpl"}
        {/if}
        {include file="printPhonebookForm.tpl"}
    </body>
</html>
